]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: add missing shell_screenshot_new()
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 14 Feb 2012 20:57:34 +0000 (15:57 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 14 Feb 2012 20:57:34 +0000 (15:57 -0500)
And fix its declaration.

src/shell-screenshot.c
src/shell-screenshot.h

index 792e737493aa2e5bc32f5f1793b21c316b50afd9..6295427ebea1c407a12f50a1fdeb4a180240607c 100644 (file)
@@ -399,3 +399,9 @@ shell_screenshot_screenshot_window (ShellScreenshot *screenshot,
   g_simple_async_result_run_in_thread (result, write_screenshot_thread, G_PRIORITY_DEFAULT, NULL);
   g_object_unref (result);
 }
+
+ShellScreenshot *
+shell_screenshot_new (void)
+{
+  return g_object_new (SHELL_TYPE_SCREENSHOT, NULL);
+}
index 9be1574bd92bb8222ecd5f7675f4829c0f912a9e..26b3667ee004781a3bac1429f97794d142f6a3b9 100644 (file)
@@ -23,7 +23,7 @@ typedef struct _ShellScreenshotClass ShellScreenshotClass;
 
 GType shell_screenshot_get_type (void) G_GNUC_CONST;
 
-ShellScreenGrabber *shell_screenshot_new (void);
+ShellScreenshot *shell_screenshot_new (void);
 
 typedef void (*ShellScreenshotCallback)  (ShellScreenshot *screenshot,
                                            gboolean success,